package com.xuecheng.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.system.model.dto.CourseCategoryDTO;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.system.entity.CourseCategory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CourseCategoryService extends IService<CourseCategory> {


    /**
     * 查询树形结构数据
     * @return
     */
    List<CourseCategoryDTO> queryThreeNodes();


    /**
     * 根据id查询课程分类信息
     * @param courseCategoryId  课程分类id
     * @return
     */
    RestResponse<CourseCategoryDTO> queryCourseCategoryById(String courseCategoryId);
}
